﻿using EasyDDD.AdminModule.Domain.DomainEventsSysMenu;

namespace EasyDDD.AdminModule.Application.DomainEventsHandler
{
    //internal class SysMenuUpdatedDomainEventHandler(
    //    ICapPublisher publisher,
    //    ILogger<SysMenuUpdatedDomainEventHandler> logger)
    //    : IDomainEventHandler<SysMenuSetDomainEvent>
    //{
    //    public Task Handle(SysMenuSetDomainEvent @event, CancellationToken cancellationToken)
    //    {
    //        logger.LogInformation("领域事件 SysMenuUpdatedDomainEventHandler {}", @event.SysMenu.Id);
    //        return publisher.PublishAsync(nameof(SysMenuUpdatedIntegrationEvent), new SysMenuUpdatedIntegrationEvent(@event.SysMenu.Id.Value));
    //    }
    //}
}